//
//  UIKit+Hero.swift
//  pai
//
//  Created by diaojz on 2017/4/14.
//  Copyright © 2017年 SHIELD. All rights reserved.
//

import UIKit

public extension UIView {
    @IBInspectable public var cornerRadius: CGFloat {
        get {
            return layer.cornerRadius
        }
        
        set {
            layer.cornerRadius = newValue
        }
    }
    
    func viewController(forStoryboardName: String) -> UIViewController {
        return UIStoryboard(name: forStoryboardName, bundle: nil).instantiateInitialViewController()!
    }
    
    func viewcontroller(forStoryboardName: String, controllerName: String) -> UIViewController {
        return UIStoryboard(name: forStoryboardName, bundle: nil).instantiateViewController(withIdentifier: controllerName)
    }
    
    
}
